﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DimensionData.Data2
{
    public class DDataNode
    {
        public int Level { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }

        public string Formula { get; set; }

        public List<DDataNode> Nodes { get; set; }

        public DDataNode()
        {
            Nodes = new List<DDataNode>();
        }

        public void AddNode(DDataNode node)
        {
            node.Level = this.Level + 1;
            Nodes.Add(node);
        }
    }
}
